import java.util.function.Consumer;
import java.util.function.Function;

public class App {
    public static void main(String[] args) {
        StringProcessor stringProcessor = str -> System.out.println(str+"*");
        IntProcessor intProcessor = num -> num*num;
        Consumer<String> consumer = str -> System.out.println(str+"*");
        Function<Integer, Integer> function = e -> e*e;

        stringProcessor.stringProcess("test stringprocess");
        consumer.accept("test consumer");
        System.out.println(intProcessor.intProcess(3));
        System.out.println(function.apply(3));

    }

    interface StringProcessor {
        public void stringProcess(String str);
    }

    interface IntProcessor {
        public int intProcess(int num);
    }
}
